package com.blog.service.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.blog.dao.UserDao;
import com.blog.entity.User;
import com.blog.service.UserService;

@Service("UserService")
public class UserServiceImpl implements UserService{
	
	@Resource
	private UserDao userDao;
	
	
	public Integer add(User user) {
		return userDao.add(user);
	}

	public Integer delete(Integer id) {
		return userDao.delete(id);
	}

	public int update(User user) {
		return 0;
	}

}
